<?php
session_start();
ob_start("ob_gzhandler");
echo "test";
class Oseba
{
	public $Ime = "";
	public $Priimek = "";
}

$janez = new Oseba();
$janez->Ime="test";

?>
<h1>Sportnik je car!</h1>
<hr>
<?php
include 'menu.php';

if($_SESSION['user']==null){
	?>
	<div align="right">
	<a href="../view/login.php">Prijava</a>
	<a href="../registration.php">Registriracija</a>
	<br />
	</div>
	<?php
} else {
	echo "Pozdravljen ".$_SESSION['user'];
}

?>
<hr>
<html>
    <head>
      <title>Prijava</title>
    </head>
	<body>
	<br>
	<br>
	<?php if ($userId) { 
	$userInfo = $facebook->api('/' + $userId); ?>
	Zivjo <?= $userInfo['name'] ?>
    <?php } else { ?>
	<div id="fb-root"></div>
	<fb:login-button></fb:login-button>
    <?php } ?>

    <?php echo "<br />php je cuden";?>
    </body>
 </html>